const Sequelize = require('sequelize');

module.exports = function(sequelize, Sequelize) {
    return sequelize.define('barInfo', {
        barID: {
            type: Sequelize.INTEGER(8),
            allowNull: false,
            comment: "酒吧id"
        },
        barName: {
            type: Sequelize.STRING(256),
            allowNull: false,
            comment: "酒吧名字"
        },
        state: {
            type: Sequelize.BOOLEAN(true),
            allowNull: false,
            comment: "酒吧状态,启用(true),禁用(false)"
        }
    });

}